package com.yang.controller;

import com.yang.entity.po.Account;
import com.yang.service.IAService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 类的功能描述
 *
 * @author 杨 强
 * @package com.yang.controller
 * @createTime 2023-01-05 9:59
 */
@RestController
public class TestController {

    @Autowired
    private IAService aService;

    @GetMapping(value = "get")
    public List<Account> get(){
        return aService.get();
    }

    @GetMapping(value = "test")
    public String test(){
        return "hello world";
    }


    @PostMapping(value = "ex")
    public String ex(@RequestBody Account account){
        String string = null;
        string.split("-");
        return "hello world";
    }
}
